﻿using System;
using System.ComponentModel.DataAnnotations;

namespace SacNetUG.Models
{
    [MetadataType(typeof(EventMd))]
    public partial class Event
    {
        internal class EventMd
        {
            [Required(ErrorMessage = "Name is Required")]
            public string Name { get; set; }

            [Required(ErrorMessage = "Start Date is Required")]
            public DateTime StartDate { get; set; }

            //[Required(ErrorMessage = "End Date is Required")]
            //public DateTime EndDate { get; set; }

            [Required(ErrorMessage = "Location is Required")]
            public int LocationId { get; set; }

            [Required(ErrorMessage = "Description is Required")]
            [UIHint("GuiEdit")]
            public string Description { get; set; }
        }
    }
}